FROM java
#暴露的端口
EXPOSE 8080

#把打成的jar包更名为 app.jar
ADD *.jar app.jar

#在创建app.jar
RUN bash -c 'touch /app.jar'

#执行的运行jar包命令
ENTRYPOINT ["java","-Dspring.profiles.active=pro", "-jar","-Dfile.encoding=UTF-8","-XX:+UseG1GC","-XX:MaxGCPauseMillis=200","-XX:+PrintGCDetails", "-XX:+PrintGCDateStamps", "-Xloggc:/log/ajgl/gc-%t.log",  "-XX:+UseGCLogFileRotation",   "-XX:NumberOfGCLogFiles=14","-XX:GCLogFileSize=10M", "-XX:+PrintCommandLineFlags","-Xms216m", "-Xmx216m","/app.jar"]





